package ru.xeden.web.html;

import java.util.Locale;

import ru.xeden.web.html.dom.MarkupModel;
import ru.xeden.web.request.IRequest;
import ru.xeden.web.request.IResponse;

/**
 * Контекст рендеринга страницы
 * @author evga
 *
 */
public class RenderContext
{
    private MarkupModel markupModel;
    private IRequest request; 
    private IResponse response;

    public RenderContext(MarkupModel markupModel, IRequest request, IResponse response)
    {
        this.markupModel = markupModel;
        this.request = request;
    }
    
    public MarkupModel getMarkupModel()
    {
        return this.markupModel;
    }

    public IRequest getRequest()
    {
        return request;
    }
    
    public Locale getLocale()
    {
        return request.getLocale();
    }

    public IResponse getResponse()
    {
        return response;
    }
}
